package com.example.wechattakeaway.service;

import com.example.wechattakeaway.form.meroptionsform.InsertOptionDetailForm;
import com.example.wechattakeaway.form.meroptionsform.UpdateOptionDetailForm;
import com.example.wechattakeaway.vo.ResultVO;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
@Repository
public interface OptionDetailService {

    //插入详情
    ResultVO insertOptionDetail(InsertOptionDetailForm insertOptionDetailForm);

    //修改详情
    ResultVO updateOptionDetail(UpdateOptionDetailForm updateOptionDetailForm);

    //根据id查询详情
    ResultVO selectDetailById(Integer optionDetailId);

    //根据选项id查询详情列表(分页)
    ResultVO selectDetailByOptionId(Integer pageNum,Integer optionId);

    //删除详情
    ResultVO deleteOptionDetail(Integer optionDetailId);
    //根据选项id查询详情列表
    ResultVO selectByOptionId(Integer optionId);
}
